from django.conf.urls.defaults import *

import os, sys
sys.path.append(os.path.normpath(os.path.join(os.path.dirname( __file__ ), '../')))
import registration.backends.default.urls as regUrls

import registration.backends.default.urls as regUrls
from django.contrib import admin
admin.autodiscover()

from views import *

import settings

urlpatterns = patterns('',

	(r'^$', index),
	(r'^i18n/', include('django.conf.urls.i18n')),
	(r'^accounts/', include(regUrls)),	
	(r'^user/(?P<userName>[\w]*)/(?P<limit>[\d]*)$', my),
	(r'^live/$', live),
    (r'^conf/admin/(.*)', admin.site.root),		
	(r'^download$', download),
	(r'^home/$', home),
	(r'^logout/$', logout),
	(r'^localize/$', localize),	
	(r'^my/$', my),
	(r'^Add/$', addLocation),
	(r'^delete/$', deleteLocation),
	(r'^location/add$', add),
	(r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),
)
